This is a CDEF (control definition) that allows you to use pictures as buttons instead of the drab black and white buttons that you are used to. You can use it just about anywhere. I've tested it on various machines.
PICTButton version 1.0 is freeware. You may use it in any project you like. All I ask is that you give me credit somewhere, either in your documentation or in your About box.
To use the CDEF, create a CNTL whose value field contains the resource ID of the picture you want as the default for the button. For example, you might use PICT ID 1000. In this case, the following table tells you what pictures you need and what they are used for:
1000 - default color
1001 - inverted color (when you click and hold on the control)
1002 - inactive color (usually a light gray, inactive looking variation of the default)
1003 - default black and white (for those who do not have color QuickDraw)
1004 - inverted black and white
1005 - inactive black and white
If you do not have a PICT of a certain ID and the CDEF is looking for it, things will probably not work correctly. If PICTButton does not work on your setup, I would certainly like to hear about it.
Bugs, gripes, comments, etc. should go to one of the following addresses. I prefer email (especially Internet). Source code (in Think C) is available for $10. Send me a check for $10 and I'll send you back a disk with the source code.